import 'package:dio/dio.dart';

class Ad {
  final Dio dio;

  Ad(this.dio);

  // 广告列表 - 首页
  Future<dynamic> getAdList({String spaceKeys = '999'}) async {
    Response res = await dio.get('/front/ad/getAllAds',
      queryParameters: {
        'spaceKeys': spaceKeys
      }
    );
    List adList = res.data['content'][0]['adDTOList'];
    return adList;
  }
}